package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QiuzhuxinxiMapper;
import com.ruoyi.system.domain.Qiuzhuxinxi;
import com.ruoyi.system.service.IQiuzhuxinxiService;

/**
 * 求助信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
@Service
public class QiuzhuxinxiServiceImpl implements IQiuzhuxinxiService 
{
    @Autowired
    private QiuzhuxinxiMapper qiuzhuxinxiMapper;

    /**
     * 查询求助信息
     * 
     * @param id 求助信息主键
     * @return 求助信息
     */
    @Override
    public Qiuzhuxinxi selectQiuzhuxinxiById(Long id)
    {
        return qiuzhuxinxiMapper.selectQiuzhuxinxiById(id);
    }

    /**
     * 查询求助信息列表
     * 
     * @param qiuzhuxinxi 求助信息
     * @return 求助信息
     */
    @Override
    public List<Qiuzhuxinxi> selectQiuzhuxinxiList(Qiuzhuxinxi qiuzhuxinxi)
    {
        return qiuzhuxinxiMapper.selectQiuzhuxinxiList(qiuzhuxinxi);
    }

    /**
     * 新增求助信息
     * 
     * @param qiuzhuxinxi 求助信息
     * @return 结果
     */
    @Override
    public int insertQiuzhuxinxi(Qiuzhuxinxi qiuzhuxinxi)
    {
        return qiuzhuxinxiMapper.insertQiuzhuxinxi(qiuzhuxinxi);
    }

    /**
     * 修改求助信息
     * 
     * @param qiuzhuxinxi 求助信息
     * @return 结果
     */
    @Override
    public int updateQiuzhuxinxi(Qiuzhuxinxi qiuzhuxinxi)
    {
        return qiuzhuxinxiMapper.updateQiuzhuxinxi(qiuzhuxinxi);
    }

    /**
     * 批量删除求助信息
     * 
     * @param ids 需要删除的求助信息主键
     * @return 结果
     */
    @Override
    public int deleteQiuzhuxinxiByIds(Long[] ids)
    {
        return qiuzhuxinxiMapper.deleteQiuzhuxinxiByIds(ids);
    }

    /**
     * 删除求助信息信息
     * 
     * @param id 求助信息主键
     * @return 结果
     */
    @Override
    public int deleteQiuzhuxinxiById(Long id)
    {
        return qiuzhuxinxiMapper.deleteQiuzhuxinxiById(id);
    }
}
